package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备管理对象 grid_host
 * 
 * @author ruoyi
 * @date 2021-12-30
 */
public class GridHost extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备ID */
    private Integer hostId;

    /** 设备IP */
    @Excel(name = "设备IP")
    private String hostIp;

    /** SSH端口 */
    @Excel(name = "SSH端口")
    private String hostPort;

    /** 主机组 */
    @Excel(name = "主机组")
    private String hostGroup;

    /** 公告状态（0正常 1关闭） */
    @Excel(name = "公告状态", readConverterExp = "0=正常,1=关闭")
    private String status;

    public void setHostId(Integer hostId) 
    {
        this.hostId = hostId;
    }

    public Integer getHostId() 
    {
        return hostId;
    }
    public void setHostIp(String hostIp) 
    {
        this.hostIp = hostIp;
    }

    public String getHostIp() 
    {
        return hostIp;
    }
    public void setHostPort(String hostPort) 
    {
        this.hostPort = hostPort;
    }

    public String getHostPort() 
    {
        return hostPort;
    }
    public void setHostGroup(String hostGroup) 
    {
        this.hostGroup = hostGroup;
    }

    public String getHostGroup() 
    {
        return hostGroup;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("hostId", getHostId())
            .append("hostIp", getHostIp())
            .append("hostPort", getHostPort())
            .append("hostGroup", getHostGroup())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
